<template>
  <starModal :ref="ref" :config="config" @click="click">
    <needView :data="dataSet.needOrderFormData"></needView>
  </starModal>
</template>
<script>
const ref = "needDetailModal";
export default {
  name: ref,
  inject: ["anc"],
  data() {
    return {
      ref,
      config: {
        title: "查看",
        show: false,
        width: 0,
        height: 400,
        draggable: true,
        mask: true,
        closable: true,
        okText: "确定",
        cancelText: "取消",
        widthRatio: 0.5,
        buttons: [{ type: "primary" }, { show: false }],
      },
    };
  },
  props: {
    dataSet: {
      default: () => {
        return {};
      },
    },
   
  },
  watch: {},
  computed: {},
  created() {},
  mounted() {
    this.$nextTick(() => {
      this.$set(this.anc.vms, this.ref, this);
    });
  },
  methods: {
    click(btn){
       this.anc.dataSet.needOrderFormData = {};
      this.config.show = false;
    }, 
  },
};
</script>
<style scoped lang="scss">

</style>
